<?php
	require_once '../connect.php';
	$title=$_POST['title'];
	$price=$_POST['price'];
	$query="INSERT INTO LIBRARY(title,price) VALUES('$title',$price)";
	if(mysqli_query($con, $query))
		echo "success";
	else 
		echo "fail";